//---------------------------------------------------------------------------

#ifndef VIBI_TIEH
#define VIBI_TIEH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include "cxContainer.hpp"
#include "cxControls.hpp"
#include "cxEdit.hpp"
#include "cxGraphics.hpp"
#include "cxGroupBox.hpp"
#include "cxLookAndFeelPainters.hpp"
#include "cxLookAndFeels.hpp"
#include <ExtCtrls.hpp>
#include <DB.hpp>
#include <DBCtrls.hpp>
#include "cxButtons.hpp"
#include <ActnList.hpp>
#include <DBGrids.hpp>
#include <Grids.hpp>
#include <Menus.hpp>
#include "cxCalendar.hpp"
#include "cxDropDownEdit.hpp"
#include "cxMaskEdit.hpp"
#include "cxTextEdit.hpp"
#include "DBAccess.hpp"
#include "IBC.hpp"
#include "MemDS.hpp"
//---------------------------------------------------------------------------
class TfrVIBI_TIE : public TForm
{
__published:	// IDE-managed Components
	TPanel *pTable;
	TPanel *pEdit;
	TcxGroupBox *gbINF_VIB;
	TcxGroupBox *gbTable;
	TLabel *Label1;
	TLabel *Label2;
	TLabel *Label3;
	TDBText *labNOM;
	TDBText *labDATA_DOG;
	TDBText *labDATA_SVER;
	TLabel *Label4;
	TDBText *labFIO;
	TLabel *Label5;
	TDBText *labADRES;
	TLabel *Label6;
	TDBText *DBText3;
	TLabel *Label7;
	TDBText *DBText4;
	TLabel *Label8;
	TDBText *DBText5;
	TLabel *Label9;
	TDBText *DBText6;
	TLabel *Label10;
	TLabel *labVID_GAZA;
	TLabel *Label13;
	TLabel *labOPLATA_PO;
	TLabel *Label15;
	TDBText *labNAIM_TARIF;
	TLabel *Label19;
	TDBText *labPLIT;
	TLabel *Label20;
	TDBText *labKOL_KOTL;
	TLabel *Label21;
	TDBText *labKOL_BPG;
	TPanel *pUPR;
	TDBGrid *sgVIBITIE;
	TcxButton *cxButton1;
	TActionList *ActionList1;
	TAction *PROSMOTR;
	TAction *PO_SPRAVKE;
	TAction *PO_GEU;
	TcxButton *cxButton2;
	TcxButton *btPO_GEU;
	TcxGroupBox *gbPO_SPRAVKE;
	TLabel *labVREM_KOL;
	TLabel *labVREM_LG;
	TLabel *labDAT_NATH;
	TcxDateEdit *dtpDAT_NATH;
	TLabel *labDAT_KON;
	TcxDateEdit *dtpDAT_KON;
	TAction *SAVE_PO_SPR;
	TAction *CANCEL_PO_SPR;
	TcxButton *btSAVE;
	TcxButton *btCANSEL;
	TEdit *edKOL_VIB;
	TEdit *edLG_VIB;
	TAction *DEL;
	TcxButton *btDEL;
	TcxButton *btVIP;
	TAction *VIPISAT;
	TcxButton *btPROP;
	TcxButton *btVREM_PROP;
	TAction *PROPISAT;
	TAction *VREM_PROP;
	TcxGroupBox *gbVIP;
	TLabel *labKOL_VIP;
	TEdit *edKOL_V;
	TLabel *labLG_VIP;
	TEdit *edLG_V;
	TLabel *labDAT_VIP;
	TcxDateEdit *dtpDAT_V;
	TcxButton *btSAVE_V;
	TcxButton *btCANSEL_V;
	TcxGroupBox *gbFIO_GILZI;
	TDBLookupComboBox *cbFIO1;
	TcxButton *btADD_GILZI;
	TDBLookupComboBox *cbFIO2;
	TDBLookupComboBox *cbFIO3;
	TDBLookupComboBox *cbFIO4;
	TDBLookupComboBox *cbFIO5;
	TIBCQuery *dsetINF_VIB;
	TIBCQuery *dsetPROVERKA;
	TIBCDataSource *dsINF_VIB;
	TIBCDataSource *dsPROVERKA;
	TAction *actESC;
	void __fastcall FormShow(TObject *Sender);
	void __fastcall PROSMOTRExecute(TObject *Sender);
	void __fastcall PO_SPRAVKEExecute(TObject *Sender);
	void __fastcall edKOL_VIBKeyDown(TObject *Sender, WORD &Key,
          TShiftState Shift);
	void __fastcall edLG_VIBKeyDown(TObject *Sender, WORD &Key, TShiftState Shift);
	void __fastcall dtpDAT_NATHKeyDown(TObject *Sender, WORD &Key,
          TShiftState Shift);
	void __fastcall dtpDAT_KONKeyDown(TObject *Sender, WORD &Key,
          TShiftState Shift);
	void __fastcall SAVE_PO_SPRExecute(TObject *Sender);
	void __fastcall CANCEL_PO_SPRExecute(TObject *Sender);
	void __fastcall DELExecute(TObject *Sender);
	void __fastcall PO_GEUExecute(TObject *Sender);
	void __fastcall VIPISATExecute(TObject *Sender);
	void __fastcall edKOL_VKeyDown(TObject *Sender, WORD &Key, TShiftState Shift);
	void __fastcall edLG_VKeyDown(TObject *Sender, WORD &Key, TShiftState Shift);
	void __fastcall dtpDAT_VKeyDown(TObject *Sender, WORD &Key, TShiftState Shift);
	void __fastcall btSAVE_VClick(TObject *Sender);
	void __fastcall PROPISATExecute(TObject *Sender);
	void __fastcall VREM_PROPExecute(TObject *Sender);
	void __fastcall cbFIO1Click(TObject *Sender);
	void __fastcall cbFIO2Click(TObject *Sender);
	void __fastcall cbFIO3Click(TObject *Sender);
	void __fastcall cbFIO4Click(TObject *Sender);
	void __fastcall cbFIO5Click(TObject *Sender);
	void __fastcall btADD_GILZIClick(TObject *Sender);
	void __fastcall actESCExecute(TObject *Sender);
private:	// User declarations
public:		// User declarations
int NOM, KOD_VIB, Stat, KOL_VIB,LG_VIB,KOL;
String DAT_NATH, DAT_KON,VIP_PROP, ERROR_JIL;
	__fastcall TfrVIBI_TIE(TComponent* Owner);
	void __fastcall TfrVIBI_TIE::Obnovi();
	void __fastcall TfrVIBI_TIE::VIDIMOST();
	void __fastcall TfrVIBI_TIE::SAVE();
	void __fastcall TfrVIBI_TIE::NEVID_BUTTON();
	void __fastcall TfrVIBI_TIE::VID_BUTTON();
	int __fastcall TfrVIBI_TIE::PROVERKA();
};
//---------------------------------------------------------------------------
extern PACKAGE TfrVIBI_TIE *frVIBI_TIE;
//---------------------------------------------------------------------------
#endif
